﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div class="ja-zinfp-featured column clearfix">
    <div class="ja-zincontent inner clearfix first">
        <%foreach (var one in ViewData["onenews"] as IEnumerable<TotalNews.Models.tbl_Item> )
          {%>
             
             <img src="<%=one.ImageUrl %>" alt="<%=one.Title %>" style="width:260px"/>
        <h4 class="ja-zintitle">
            <a href="/Item/Details/<%=one.Id %>" title="Alt cho ..."><%=one.Title%></a></h4>
        <p>
            <%=one.Description%>
        </p>
        <a href="/Item/Details/<%=one.Id %>" class="Đọc tiếp..."><span>Đọc tiếp...</span></a>  
          <%} %>
       
    </div>
</div>

<div class="ja-zinfp-normal column clearfix">
    <%foreach (var item in ViewData["topnews"] as IEnumerable<TotalNews.Models.tbl_Item>)
      {%>
        <div class="ja-zincontent inner clearfix inactive">
         <a href="/Item/Details/<%=item.Id %>">
        <img src="<%=item.ImageUrl %>" alt="<%=item.Title %>" style="width:60px;height:60px"/></a>
        <h4 class="ja-zintitle">
            <a href="/Item/Details/<%=item.Id %>" title="Giving something back"><%= item.Title %></a></h4>
        <p>
        <%if (item.Description.Length < 50)
          {%>
        <%=item.Description%>
        <%} %>
        <%else
          {%>
            <%=item.Description.Substring(0,50).ToString()+"..."%>
            <%} %>
        </p>
    </div>
      <%} %>
</div>
